import request from './request'
export function queryMenuColumn ({parentId = 0} = {}) {
  return request({
    url: '/console/column/queryMenuColumn.do',
    method: 'POST',
    body: {parentId}
  })
}
export function queryPageColumn ({currentPage = 1, pageSize = 10,isDisplay = '',parentId} = {}) {
  return request({
    url: '/console/column/queryPageColumn.do',
    method: 'POST',
    body: {currentPage, pageSize,isDisplay,parentId}
  })
}
export function editColumn ({id,siteId,parentId,contentImg,channelPath,priority,hasContent,isDisplay,
  columnName,linkUrl,isBlank} = {}) {
  return request({
    url: '/console/column/editColumn.do',
    method: 'POST',
    body: {id,siteId,parentId,contentImg,channelPath,priority,hasContent,isDisplay,
      columnName,linkUrl,isBlank}
  })
}
export function createColumn ({siteId,parentId,contentImg,channelPath,priority,hasContent,isDisplay,
  columnName,linkUrl,isBlank} = {}) {
  return request({
    url: '/console/column/createColumn.do',
    method: 'POST',
    body: {siteId,parentId,contentImg,channelPath,priority,hasContent,isDisplay,
      columnName,linkUrl,isBlank}
  })
}
export function editStatusColumn ({id,isDisplay = 2} = {}) {
  return request({
    url: '/console/column/editStatusColumn.do',
    method: 'POST',
    body: {id,isDisplay}
  })
}